import Vue from "vue";
import VueRouter from "vue-router";

import ActivitiList from "../../views/activiti/ActivitiList";
import ActivitiEditor from "../../views/activiti/ActivitiEditor";

Vue.use(VueRouter);

const routes = [
  {
    path: "/activiti",
    name: "ActivitiList",
    component: ActivitiList,
  },
  {
    path: "/activiti/editor",
    name: "ActivitiEditor",
    component: ActivitiEditor
  }
];

const index = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default index;
